package com.kclm.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @Author : lvhx
 * @Date: 2025/11/11 10:55
 * @Description:
 */
@Configuration
public class AppConfig {
    @Value("${spring.application.name}")
    private String name;
    @Value("${spring.application.version}")
    private String version;
    public void getInfo(){
        System.out.println("应用名name:"+name+" 版本号："+version);
    }
}
